package inc.zhugastrov.sellerform;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Wherehouse")
public class Wherehouse implements Product {
	@Id
	private Long id;
	private String name;
	private String brand;
	private String about;
	private Double price;
	@Column(name = "AMOUNT")
	private int amountInStore;
	private Double wherehousePrice;

	
	public Double getWherehousePrice() {
		return wherehousePrice;
	}

	public void setWherehousePrice(Double wherehousePrice) {
		this.wherehousePrice = wherehousePrice;
	}

	public Wherehouse() {
	}
	
	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getAbout() {
		return about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public int getAmountInStore() {
		return amountInStore;
	}

	public void setAmountInStore(int amountInStore) {
		this.amountInStore = amountInStore;
	}

	
	public Wherehouse(Item item) {
		setWherehousePrice(3d);
		setName(item.getName());
		setBrand(item.getBrand());
		setAbout(item.getAbout());
		setPrice(item.getPrice());
		setAmountInStore(item.getAmountInStore());
		setId(item.getId());
	}

	

	

	

}
